package com.example.demo.vo;

import com.diboot.core.binding.annotation.*;
import com.example.demo.entity.FinanceRevExp;
import com.diboot.iam.entity.IamUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 收支管理 DetailVO定义
* @author MyName
* @version 1.0
* @date 2024-03-04
 * Copyright © MyCompany
*/
@Getter @Setter @Accessors(chain = true)
public class FinanceRevExpDetailVO extends FinanceRevExp  {
    private static final long serialVersionUID = 8621097538215066786L;

    /**
    * 关联字典：METHOD
    */
    @BindDict(type=DICT_METHOD, field="method")
    private String methodLabel;

    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by=id")
    private String updateByName;

}